package com.jlect.swebing.renderers.client;

/**
 * Abstract implementation of the renderer action interface
 *
 * @author Sergey Kozmin
 * @since 20.11.2007 8:56:26
 */
public abstract class AbstractRendererEvent implements RendererEvent {
    private Object initial;
    private Renderer source;
    private int modifiers;

    public void init(Object initial, Renderer source, int modifiers) {
        this.initial = initial;
        this.source = source;
        this.modifiers = modifiers;
    }

    public void init(Renderer source, int modifiers) {
        this.source = source;
        this.modifiers = modifiers;
    }

    public Renderer getSource() {
        return source;
    }

    public int getModifiers() {
        return modifiers;
    }

    public Object getInitial() {
        return initial;
    }

    public void setInitial(Object initial) {
        this.initial = initial;
    }

    public String toString() {
        return "AbstractRendererEvent{" +
                "initial=" + initial +
                ", source=" + source +
                ", modifiers=" + modifiers +
                '}';
    }
}
